tool
extends MarginContainer


export var texture_node : NodePath
export var texture : Texture setget set_texture
export var label_node : NodePath
export (String, MULTILINE) var text : String setget set_text


#============================================================
#   Set/Get
#============================================================
func set_texture(value: Texture) -> void:
	texture = value
	if texture_node:
		if not self.is_inside_tree():
			yield(self, "ready")
		get_node(texture_node).texture = texture


func set_text(value: String) -> void:
	text = value
	if label_node:
		if not self.is_inside_tree():
			yield(self, "ready")
		get_node(label_node)["bbcode_text"] = "[wave amp=50 freq=3.5]%s[/wave]" % text


